package com.v5ba.server.service.impl;

import com.v5ba.server.service.IndexService;
import com.v5ba.server.util.HttpClientUtil;
import org.springframework.stereotype.Service;

/**
 * @author yiren
 * @date 2018/6/17
 */
@Service
public class IndexServiceImpl implements IndexService {
    public static final String addUserUrl = "http://localhost:8081/sys/user/add";
    public static final String addLogUrl = "http://localhost:8082/sys/log/add";

    @Override
    public void exec() {
        HttpClientUtil.HttpVO httpVO = HttpClientUtil.doPost(addUserUrl, "");

        HttpClientUtil.HttpVO httpVO2 = HttpClientUtil.doPost(addLogUrl, "");
        System.out.println("");
    }
}
